/**
 * @file		version.c
 * @brief		version process api
 * @note		None
 * @attention	None
 * 
 * <B><I>Copyright 2015 Socionext Inc.</I></B>
 */

//--------------------------------------------------------------
// Header files
//--------------------------------------------------------------

//--------------------------------------------------------------
// Extern Function
//--------------------------------------------------------------

//--------------------------------------------------------------
// Definition
//--------------------------------------------------------------

//--------------------------------------------------------------
// Structure
//--------------------------------------------------------------
typedef union {
	unsigned long word;
	struct {
		unsigned short mp;			/// Release version for MP
		unsigned short debug;		/// Release version for Debug
	} type;
} T_VERSION;

//--------------------------------------------------------------
// Structure
//--------------------------------------------------------------
/**
	 For example:
		 0201.0000 - 2017.03.31 (formal release V02L01)
 */

static const T_VERSION gVersion = { 0x02010000 } ; 	// 2017.03.31 V02.01.00

//--------------------------------------------------------------
// Global Function
//--------------------------------------------------------------
unsigned long Get_Version(void)
{
	return gVersion.word;
}

unsigned short Get_MP_Version(void)
{
	return gVersion.type.mp;
}

unsigned short Get_Debug_Version(void)
{
	return gVersion.type.debug;
}
